package top.hzy520.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 15:06 2018/6/2
 */
@FeignClient(name = "notification-service",fallback = NotificationFallBack.class)
public interface NotificationClient {
    @RequestMapping("/sms/verify")
    boolean verifyMobileCode(@RequestParam("mobile") String mobile,@RequestParam("code") String code);

     @RequestMapping("/email/verify")
    boolean verifyEmailCode(@RequestParam("email") String email,@RequestParam("code") String code);
}
